package com.youkeyi.ddy.cloud.common.api.application.business.hr.employee.contract;

import com.youkeyi.ddy.cloud.common.api.application.business.hr.employee.contract.dto.BusinessEmployeeContractListCloudDto;
import com.youkeyi.ddy.cloud.common.api.application.business.hr.employee.contract.param.BusinessEmployeeContractCreateCloudParam;
import com.youkeyi.ddy.cloud.common.api.application.business.hr.employee.contract.param.BusinessEmployeeContractDeleteCloudParam;
import com.youkeyi.ddy.cloud.common.api.application.business.hr.employee.contract.param.BusinessEmployeeContractListCloudParam;
import com.youkeyi.ddy.cloud.common.api.application.business.hr.employee.contract.param.BusinessEmployeeContractUpdateCloudParam;
import com.youkeyi.ddy.cloud.common.response.ResponseContent;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * BusinessEmployeeContractCloudServiceFallback
 *
 * @Author liuxiawang
 * @Date 1/28/22 4:12 PM
 * @Location shenzhen.china
 */
@Component
@RequestMapping("/business/employee/contract/fallback")
public class BusinessEmployeeContractCloudServiceFallback implements BusinessEmployeeContractCloudService {

    @Override
    public BusinessEmployeeContractListCloudDto list(BusinessEmployeeContractListCloudParam param) {
        return new BusinessEmployeeContractListCloudDto(Boolean.FALSE, "服务不可用");
    }

    @Override
    public ResponseContent create(BusinessEmployeeContractCreateCloudParam param) {
        return new ResponseContent(Boolean.FALSE, "服务不可用");
    }

    @Override
    public ResponseContent update(BusinessEmployeeContractUpdateCloudParam param) {
        return new ResponseContent(Boolean.FALSE, "服务不可用");
    }

    @Override
    public ResponseContent delete(BusinessEmployeeContractDeleteCloudParam param) {
        return new ResponseContent(Boolean.FALSE, "服务不可用");
    }
}
